<template>
  <div class="global-base-list-container">
    <!--  顶部查询框  -->
    <div class="search-container" v-if="$slots.search || $slots.searchTools">
      <slot name="search"></slot>
      <!--      <common-search-container>
              <slot name="search" slot="search"></slot>
              <slot name="searchTools" slot="searchTools"></slot>
            </common-search-container>-->
    </div>
    <!--  操作按钮组  -->
    <div class="tools-container" v-if="$slots.tools">
      <slot name="tools"></slot>
    </div>
    <!--  内容  -->
    <div class="content-container" v-if="$slots.content">
      <slot name="content"></slot>
    </div>
    <!--  分页  -->
    <div class="list-pagination-container" v-if="$slots.pagination">
      <slot name="pagination"></slot>
    </div>

    <!--  其他(弹框)  -->
    <slot name="default"></slot>
  </div>
</template>

<script>
export default {
  name: 'BaseList'
}
</script>

<style scoped lang="scss">
.global-base-list-container {
  width: 100%;
  height: 100%;
  padding: 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;

  .search-container {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  .tools-container {
    padding-bottom: 18px;
    z-index: 1;
    background: #fff;
  }

  .content-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 990;
  }

  .list-pagination-container {

  }

}
</style>
